﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ProyectoBastanteo.Dominio.Bastanteo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>Cliente</th>
            <th>Grupo</th>
            <th>Poder</th>
            <th>TipoIntervencion</th>
            <th>Importe</th>
            <th>FechaVenc.</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { codigo = item.codclie.codclie, grupo = item.grubast, poder = item.codpode.codpod })%> 
                <%: Html.ActionLink("Detalles", "Details", new { codigo = item.codclie.codclie, grupo = item.grubast, poder = item.codpode.codpod })%> 
                <%: Html.ActionLink("Eliminar", "Delete", new { codigo = item.codclie.codclie, grupo = item.grubast, poder = item.codpode.codpod })%>
            </td>

            <td>
                
              
                 <%: item.codclie.razclie%>   
            </td>

            <td>
                
                <%: item.grubast %>
            </td>

            <td>
                
                <%: item.codpode.nompod %>
            </td>


            <td>
                <%: item.tipoint %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.importe) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.fecvenc) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

